package com.why.blog.dao.mapper;

import com.why.blog.entity.HaloPostsTags;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.why.blog.entity.VO.TagVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TriggerWu
 * @since 2019-04-28
 */
@Repository
@Mapper
public interface HaloPostsTagsMapper extends BaseMapper<HaloPostsTags> {
    //查询文章的标签
    List<TagVo> selectTags(@Param("postId") String postId);

    //标签云
    List<TagVo> tagsCloud();
}
